<?php
/*
 * This file handles the 'breaking news' functionality that
 * most newspapers expect on their website.
 *
 */

/*
 * This code snippet must be in all of our themes for the
 * class of each post <div>
<?php
	if(function_exists('cpBreakingNews')){
		return cpBreakingNews();
	}
	else
		return 'post';

*/



/*
 * This function checks to see if the "Breaking News" box on the post has been checked
 */
function cpBreakingNews() {
	$cpAdminOptionsName = 'CollegePressAdminOptions';
	$cpOptions = get_option($adminOptionsName);

	if ($cp_Options['enableBreakingNews'] == "true") {
		if ($postOptions['cpBreakingPost'] == "true") {//this is a breaking news story
			return 'breaking';
		}
		else
			return 'post';
	}
}


/*function cpBreakingPostCheckbox() {
	global $post;
	?>
	<!--Checkbox HTML-->
	<?php if ($message) : ?>
	<div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
	<?php endif; ?>
	<div id="dropmessage" class="updated" style="display:none;"></div>
	<div id="cpStuff" class="dbx-group">
	<h2><?php _e('Breaking News', 'cpBreakingNews'); ?></h2>
	<form name="dofollow" action="" method="post">
	<input type="checkbox" name="cpBreakingPost" <?php if (get_option('cpBreakingPost')) echo "checked=\"1\""; ?>/>
	<p class="submit">
	<input type="hidden" name="action" value="cpBreakingPost_update" /> 
	<input type="hidden" name="page_options" value="cpBreakingPost" /> 
	<input type="submit" name="Submit" value="<?php _e('Update Options', 'College Press')?> &raquo;" /> 
	</p>
	</form>

	<?php

}*/

?>